#include "frm_dtbodybuilding.h"
#include "ui_frm_dtbodybuilding.h"
#include "frm_diet.h"
#include "frm_menu.h"
#include <QDesktopWidget>

Frm_dtbodybuilding::Frm_dtbodybuilding(QDialog *parent) :
    QDialog(parent),
    ui(new Ui::Frm_dtbodybuilding)
{
    ui->setupUi(this);
    setWindowFlags( Qt:: WindowTitleHint | Qt:: CustomizeWindowHint | Qt:: WindowMinimizeButtonHint | Qt:: WindowMaximizeButtonHint);
    this->move(QApplication::desktop()->screen()->rect().center() - this->rect().center());
}

Frm_dtbodybuilding::~Frm_dtbodybuilding()
{
    delete ui;
}

void Frm_dtbodybuilding::on_pushButton_clicked()
{
    frm_menu *menu = new frm_menu();
    this->hide();
    menu->show();
}

void Frm_dtbodybuilding::on_pushButton_2_clicked()
{
    frm_diet *diet= new frm_diet();
    diet->show();
    this->hide();
}
